package com.jml.工厂模式.抽象工厂;

public class Main {

    public static void main(String[] args) {
        CarFactory carFactory=new JiLiFactory();
        Engine engine=carFactory.createEngine();
        engine.run();
        engine.start();

        CarFactory carFactory1=new AoDiFactory();
        Engine engine1=carFactory1.createEngine();
        engine1.run();
        engine1.start();

    }

}

